import request from '@/utils/request'

const profTit = {
  list(params){
    return request.get("/system/protit/list", { params })
  },
  treeselect() {
    return request.get("/system/protit/treeSelect")
  },
  treeSelectHigh(){
    return request.get("/system/protit/treeSelectHigh")
  },
  highList(){
    return request.get("/system/protit/selectHighList")
  },
  add(data){
    return request.post("/system/protit/add", data)
  },
  edit(data){
    return request.post("/system/protit/update", data)
  },
  del(id){
    return request.post(`/system/protit/delete/${id}`)
  },
  get(id){
    return request.get(`/system/protit/detail/${id}`)
  },
}

export default profTit;
